<html>
  <body>
    <div>
      Dear <%= @user.firstname%>: <br><br>
      
      We would like to tell you about your question progress.
	  Here are the progress about your question:
	  <%@user.questions.each do |q|%>
	  	<%if !q.questionmailer.blank?%>
			<br/>
			<div>
				<p>question ID: <%=q.id%></p>
				<p>question message: <%=q.message%></p>
				<p>question agree: <%=q.agree%></p>
				<p>question disagree: <%=q.disagree%></p>
			</div>
			<br/>
			<%if !q.comments.blank?%>
			Answer:
				 <%q.comments.each do |c|%>
			<div>
				<p>Commentator: <%=c.commentator%></p>
				<p>Answer message: <%=c.message%></p>
				<p>Answer agree: <%=c.agree%></p>
				<p>Answer disagree: <%=c.disagree%></p>
			</div>
			<br/>
			<%end%>
			<%end%>
		<%end%>
	  <%end%>
      <br>
      <br>
      Thank You
		
	  Votq Teams
    </div>
  </body>
</html>